package com.wyp168.gulimall.product.feign;

import com.wyp168.common.to.SkuReductionTO;
import com.wyp168.common.to.SpuBoundTO;
import com.wyp168.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient("gulimall-coupon")
public interface CouponFeignService {

    /**
     * 保存sku积分信息
     * @param spuBoundTO
     * @return
     */
    @PostMapping("/coupon/spubounds/save")
    R saveSpuBounds(@RequestBody SpuBoundTO spuBoundTO);

    /**
     * 保存sku 满减、打折、会员价格信息
     * @param skuReductionTO
     */
    @PostMapping("/coupon/skufullreduction/saveInfo")
    R saveSkuRedicution(@RequestBody SkuReductionTO skuReductionTO);
}
